var http = require('http');

var options = {
  host: '10.1.62.234',
  port: 80,
  path: '/report/ReportServer?reportlet=/custom/e10adc3949ba59abbe56e057f20f88dd/Monitor/%E6%80%A7%E8%83%BD%E6%8C%87%E6%A0%87%E6%8A%A5%E8%A1%A8.cpt&tenantId=e10adc3949ba59abbe56e057f20f88dd&userId=e10adc3949ba59abbe56e057f20f88dd&lang=zh_CN&apikey=e10adc3949ba59abbe56e057f2gg88dd',
  method: 'GET',
  headers: {
    accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
    'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
    cookie: 'language=zh_CN; skin=blue; token=ff025fbc47416db8a70bfc3064c7ba078725b130155fae02ba7b15484020ecb2',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'
  },
  rejectUnauthorized: false
};

var req = http.request(options, function(res) {
  console.log(req.path)
  res.on('data', (chunk) => {
    console.log('BODY:');
    console.log(`${chunk}`)
  });
});

req.end()
